package com.qf.mywatch.fragment;


import android.graphics.Color;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v4.view.ViewPager;
import android.support.v7.widget.Toolbar;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.qf.mywatch.R;

import java.util.ArrayList;


/**
 * A simple {@link Fragment} subclass.
 * 我的
 */
public class MySelfFragment extends Fragment {

    private Toolbar toolbar;
    private ViewPager viewPager;
    private ArrayList<Fragment> list_frag;
    private String[] arr;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View view=inflater.inflate(R.layout.fragment_myself,null);
        initView(view);
        toolbarView();
        return view;
    }

    private void toolbarView() {
        toolbar.setBackgroundColor(Color.RED);
        toolbar.setTitle("大碗手表");
    }

    @Override
    public void onActivityCreated(@Nullable Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);

    }

    //控件实例化
    private void initView(View view) {
        toolbar= (Toolbar) view.findViewById(R.id.home_frag_tb);
    }

}
